<?php require_once(dirname(__FILE__)."/../config/config.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>店铺详细信息</title>
</head>
<body>
<h1 align="center">店铺详细信息</h1>
<?php  
if($_SESSION['admin_name']=="")
{

	echo "<script>location.href='admin_login.php';</script>";
}
?>
<?php 
	$shop_id=$_GET['id'];
	$sql=mysql_query("select * from zy_shop where shop_id='".$shop_id."' order by shop_id desc");
	$shop=mysql_fetch_array($sql);
?>
<form id="form1" name="form1" method="post" action="">
  <table width="500" height="30" align="center" border="1">
   <tr>
      <td width="200" height="30" align="center">店铺编号</td>
      <td width="300" height="30" align="center"><?php echo $shop['shop_id'];?></td>
      <td width="200" height="30" align="center">LOGO<br />
	   <img name="logo" src="<?php echo SITE_ROOT;?><?php echo $shop['logo'];?>" width="121" height="107" alt="" /></td>
    </tr>
    <tr>
      <td width="200" height="30" align="center">店铺名称</td>
      <td width="300" height="30" align="center"><?php echo $shop['shop_name'];?></td>
    </tr>
    <tr>
      <td width="200" height="30" align="center">店铺地址</td>
      <td width="300" height="30" align="center"><?php echo $shop['shop_address'];?></td>
    </tr>
	 <tr>
      <td width="200" height="30" align="center">店铺电话</td>
      <td width="300" height="30" align="center"><?php echo $shop['shop_phone'];?></td>
    </tr>
    <tr>
      <td width="200" height="30" align="center">店铺描述</td>
      <td width="300" height="30" align="center"><?php echo $shop['description'];?></td>
    </tr>
    <tr>
      <td width="200" height="30" align="center">加盟时间</td>
      <td width="300" height="30" align="center"><?php echo $shop['join_time'];?></td>
    </tr>
    <tr>
      <td width="200" height="30" align="center">店铺简介</td>
      <td width="300" height="30" align="center"><?php echo $shop['introduction'];?></td>
    </tr>
    <tr>
      <td width="200" height="30" align="center">店内公告</td>
      <td width="300" height="30" align="center"><?php echo $shop['announce'];?></td>
    </tr>
    <tr>
      <td width="200" height="30" align="center">起送价格</td>
      <td width="300" height="30" align="center"><?php echo $shop['start_price'];?></td>
    </tr>
    <tr>
      <td width="200" height="30" align="center">商圈范围</td>
      <td width="300" height="30" align="center"><?php echo $shop['district'];?></td>
    </tr>
    <tr>
      <td width="200" height="30" align="center">商圈距离</td>
      <td width="300" height="30" align="center"><?php echo $shop['distance'];?></td>
    </tr>
    <tr>
      <td width="200" height="30" align="center">营业时间</td>
      <td width="300" height="30" align="center"><?php echo $shop['opening_hours'];?></td>
    </tr>
    <tr>
      <td width="200" height="30" align="center">送餐时间</td>
      <td width="300" height="30" align="center"><?php echo $shop['delivery_time'];?></td>
    </tr>
	<tr>
      <td width="200" height="30" align="center">送餐时长</td>
      <td width="300" height="30" align="center"><?php echo $shop['delivery_long'];?></td>
    </tr>
    <tr>
      <td width="200" height="30" align="center">餐厅类型</td>
      <td width="300" height="30" align="center">
	  <?php 
					  	if(strpos($shop['shop_type'],"a1")>0){
					  		echo "本周推荐&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a2")>0){
					  		echo "江浙菜&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a3")>0){
					  		echo "快餐小吃&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a4")>0){
					  		echo "日韩料理&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a5")>0){
					  		echo "川菜&nbsp;&nbsp;";
						}
						if(strpos($shop['shop_type'],"a6")>0){
					  		echo "奶茶甜点&nbsp;&nbsp;";
						}
					  ?>
	  </td>
    </tr>
  </table>
  <h3 align="center"><a href="admin_management.php">返回</a></h3>
</form>
</body>
</html>
